package chinatelecom.email_contact;

public class ContactBean {


    /**
     * isParent : true
     * icon : /webmail/jsp/pentsimple/js/jq/images/dept.gif
     * name : 集团总部
     * id : 10034822
     * title : 集团总部
     */

    private boolean isParent;
    private String icon;
    private String name;
    private String id;
    private String title;
    private String email;

    public ContactBean(String name, String title, String email) {
        this.name = name;
        this.title = title;
        this.email = email;
    }

    public boolean isIsParent() {
        return isParent;
    }

    public void setIsParent(boolean isParent) {
        this.isParent = isParent;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer(title + "," + name + "," + email);
        return sb.toString();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
